<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'list'">
	<div class="fui-content">
		<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
			<div class="carousel-inner" role="listbox" style="height:6rem">
		<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.banner">
			<a href="#">
				<img src="{{tomedia(item.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
			</a>
		</div>
		</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="item in pagedata.banner" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
		</div>
		<div class="fui-searchbar bar">
			<div ng-class="{'searchbar center':1,'searchbar-active':pagedata.searchbar ==1}">
						<input type="button" ng-click="access(pagedata.op,made_query(pagedata.params))"  value="搜索" class="searchbar-cancel searchbtn">
						<div class="search-input" ng-click="pagedata.searchbar =1">
							<input type="search" placeholder="输入关键字" class="search" ng-model="pagedata.params.keyword">
						</div>
			</div>
		</div>
		<div class="fui-line" style="width:6rem;margin:0.5rem auto 0 auto">
			<div class="text text-danger" style="background-color:#f3f3f3" >分类列表</div>
		</div>
		<div class="fui-tab-scroll" style="height: 4.2rem">
			<div class="weui_cells_radio3" style="z-index:0;height: 4.2rem;padding:0.3rem" >
			    <label class="jyui_cell_member" style="width:50px" ng-repeat="item in pagedata.list">
					<div class="userimg" href="javascript:;"  ng-click="access_json('jy_onestore/picslist/detail/id='+item.id)">
						<img class="img-circle"  ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}" width="50" height="50">
					</div>
					<div>
						<span style="font-size:0.3rem">{{item.title}}</span>
					</div>
				</label>
			</div>
		</div>

		
	</div>
</div>

<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'detail'">
	<div class="fui-content">
		<div class="fui-picturew" id="mpmansory" style="padding: {paddingtop}px {paddingleft}px; background: {background};">
                <a ng-repeat="item in pagedata.list" class="item"  style="padding: 5px;">
                    <div href="javascript:;" ng-click="access_json('jy_cmsphoto/photo/detail/id='+item.id)" class="image">
                        <img ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
                        <div class="title" style="color: {titlecolor}; text-align: {titlealign};">{{item.title}}</div>
                    </div>
                </a>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>